package com.hjq.mallauth.entity.vo;

import lombok.Data;
import org.checkerframework.checker.units.qual.Length;

import javax.swing.*;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @auther HJQ
 */
@Data
public class UserRegVO {
    @NotEmpty(message = "用户名必须提交")

    private String  username;
    @NotEmpty(message = "密码不得为空")
    private String password;
    @Pattern(regexp ="^[1][358][0-9]{9}$",message = "手机填写不正确")
    private String phoneNum;
    @NotEmpty(message = "验证码不得为空")
    private  String code;
}
